#include <iostream>
#include <string>
using namespace std;
string s("Hello World");
class Solution {
public:
    void reverseString(string& s) {
        size_t begin=0,end=s.size()-1;
        while(begin<end)
        {
            swap(s[begin++],s[end--]);
        }
    }
};